using System.Collections.Generic;

namespace Ymatou.CommonService
{
    public static class PagedListExtension
    {
        public static PagedList<T> AsPagedList<T>(this List<T> list, PagerInfo pagerInfo)
        {
            return new PagedList<T>(list) { PagerInfo = pagerInfo };
        }
    }
}